﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniErp.Model.Entities.AssetManagement
{
    /// <summary>
    /// 资产总类别实体
    /// </summary>
    [Table("GeneralType")]
    public class GeneralTypeEntity
    {
        /// <summary>
        /// 资产总类型编号
        /// </summary>
        [Key]
        [MaxLength(4)]
        [MinLength(4)]
        public int GeneralTypeId { get; set; }

        /// <summary>
        /// 资产总类型名
        /// </summary>
        [MaxLength(20), Required]
        public string GeneralTypeName { get; set; }

        /// <summary>
        /// 资产总类型备注
        /// </summary>
        public string GeneralTypeRemarks { get; set; }

        public List<AssetInfoEntity> AssetInfos { get; set; }
    }
}
